package com.ctshk.rpc.order.goods.service;

import com.ctshk.common.dto.Result;
import com.ctshk.common.model.PageResponse;
import com.ctshk.rpc.order.goods.dto.OrderShopCustomerDTO;
import com.ctshk.rpc.order.goods.dto.ShoppingShopStoreDTO;
import com.ctshk.rpc.order.goods.req.OrderShopCustomerReq;
import com.ctshk.rpc.order.goods.req.ShoppingShopLoginReq;
import com.ctshk.rpc.order.goods.req.ShoppingShopPwdLoginReq;
import com.ctshk.rpc.order.goods.req.SmsCaptchaReq;

/**
 * <p>
 *     小店用户管理--服务接口
 * </p>
 *
 * @author 黄利斌
 * @date 2021/6/2 11:15 上午
 */
public interface IShoppingShopStoreUserService {

    /**
     * 通过小店id查询C端客户统计
     *
     * @param req @return
     * @param shoppingShopStoreDTO
     * @return
     */
    Result<PageResponse<OrderShopCustomerDTO>> customerStatistics(OrderShopCustomerReq req, ShoppingShopStoreDTO shoppingShopStoreDTO);

    /**
     * C端-小店登录-设置密码
     * @param req
     * @return
     */
    Result updatePwd(SmsCaptchaReq req);

    /**
     * 小店登录--验证码
     * @param req
     * @return
     */
    Result<ShoppingShopStoreDTO> loginAndCode(ShoppingShopLoginReq req);

    /**
     * 小店登录--密码
     * @param req
     * @return
     */
    Result<ShoppingShopStoreDTO> loginAndPwd(ShoppingShopPwdLoginReq req);
}
